<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Login;
use Illuminate\Support\Facades\Input;

//use Illuminate\Http\Request;


class loginController extends Controller
{
    public function __construct()
    {

    }
    public function login()
    {
        return view('admin.Login_index');
    }
    public function checkLogin()
    {
        $userInfo = Input::all();
        $loginModel = new Login();
        $result = $loginModel->checkLogin($userInfo);
        echo json_encode($result);
    }
}
